package sudroid.android;

import android.graphics.Bitmap;
import android.os.AsyncTask;
import android.os.AsyncTask.Status;
import android.os.Message;

public class CleanUtils extends sudroid.CleanUtils
{
  public static boolean cancelTask(AsyncTask<?, ?, ?> paramAsyncTask)
  {
    if (!isAsynctaskFinished(paramAsyncTask));
    for (boolean bool = paramAsyncTask.cancel(1); ; bool = false)
      return bool;
  }

  public static boolean isAsynctaskFinished(AsyncTask<?, ?, ?> paramAsyncTask)
  {
    if (paramAsyncTask != null)
    {
      AsyncTask.Status localStatus1 = paramAsyncTask.getStatus();
      AsyncTask.Status localStatus2 = AsyncTask.Status.FINISHED;
      if (localStatus1 != localStatus2)
        break label22;
    }
    label22: for (int i = 1; ; i = 0)
      return i;
  }

  public static void recycleBitmap(Bitmap paramBitmap)
  {
    if ((paramBitmap != null) && (!paramBitmap.isRecycled()))
      paramBitmap.recycle();
  }

  public static void recycleMessage(Message paramMessage)
  {
    if (paramMessage != null)
      paramMessage.recycle();
  }
}

/* Location:           D:\Program Files\eclipse\apktool-r01-3\新浪微博\classes.dex.dex2jar.jar
 * Qualified Name:     sudroid.android.CleanUtils
 * JD-Core Version:    0.6.0
 */